package com.zx.cloud.service;

import java.util.List;

import com.zx.cloud.util.Page;


/**
 * @author Alex
 */
public interface CrudService<T> {

	int insert(T record);

    T get(Long id);

    int update(T record);
    
    List<T> find(final T entity) ;

   	long count(final T entity);

	Page<T> page(final T entity);

	T findOne(final T entity);
	
	int remove(final T entity);

}
